//你的代码将被嵌在这里
#include <iostream>
using namespace std;
class TwoCoor
{
private:
    double x,y;
public:
    TwoCoor(double X,double Y):x(X),y(Y){}
    TwoCoor(){}
    TwoCoor operator+(const TwoCoor &p)
    {
        return TwoCoor(x+p.x,y+p.y);
    }
    TwoCoor operator-(const TwoCoor &p)
    {
        return TwoCoor(x-p.x,y-p.y);
    }
    void display()
    {
        cout<<"("<<x<<","<<y<<")"<<endl;
    }
};


int main(){
    TwoCoor p1(1,2),p2(-1,1),p3,p4;
    p3=p1+p2;
    p4=p1-p2;
    p3.display();
    p4.display();
    return 0;
}